package com.oilsoft.scm.domain.contour;

import java.util.ArrayList;
import java.util.List;


public class Contour {
	private int numRows;
	private int numColumns;
	private int z;
	private List<Figure> figures;
	
	public Contour() {
	}
	
	public Contour(int numRows, int numColumns, int z, List<Figure> figures) {
		this.numRows = numRows;
		this.numColumns = numColumns;
		this.z = z;
		this.figures = figures;
	}

	public int getNumRows() {
		return numRows;
	}
	public void setNumRows(int numRows) {
		this.numRows = numRows;
	}
	public int getNumColumns() {
		return numColumns;
	}
	public void setNumColumns(int numColumns) {
		this.numColumns = numColumns;
	}
	public int getZ() {
		return z;
	}
	public void setZ(int z) {
		this.z = z;
	}

	public List<Figure> getFigures() {
		return figures;
	}

	public void setFigures(List<Figure> figures) {
		this.figures = figures;
	}
	
	public void addFigure(Figure figure){
		if(figures==null)
			figures = new ArrayList<Figure>();
		figures.add(figure);
	}
	
}
